package com.leyou.item.pojo.api;

import com.leyou.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * *
 * Created by IntelliJ IDEA.
 * Author: caoLei
 * Date: 2018/10/29
 * Time: 9:22
 * *
 */
@RequestMapping("brand")
public interface BrandApi {
    /**
     * 根据商品品牌id，查询商品品牌
     *
     * @param id
     * @return
     */
    @GetMapping("{id}")
    public Brand queryBrandById(@PathVariable("id") Long id);

    /**
     * 根据品牌id集合批量查询品牌
     * @param ids
     * @return
     */
    @GetMapping("list")
    public List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);

}
